/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.business.fee.facade.query.result.info;

import info.peigen.hotpot.business.fee.facade.enums.FeeMethod;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

import java.util.List;

/**
 * <b>(QueryFeeInfo)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/4/28
 */
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class QueryFeeResultInfo {
    /** RuleId */
    String ruleId;
    /** 针对收费账户，平台为default、客户为customerId */
    @NotEmpty
    String    customerId;
    /** 收费方式 Ratio-比例、FixedAmount-固定金额、Multi_Step_Amount-阶梯式 */
    @NotNull
    FeeMethod feeMethod;
    /** 收费规则具体内容,比例或固定金额，类型为阶梯时为空 */
    String                         context;
    /** 阶梯详情 */
    List<QueryFeeDetailResultInfo> detailResultInfo;

}